from nextpy_org import styles
from nextpy_org.templates import template
import nextpy as xt

@template(route="AreaChart", title="4Components", description="6")
def areachart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/areachart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Axis", title="4Components", description="6")
def axis() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/axis.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="BarChart", title="4Components", description="6")
def barchart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/barchart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Brush", title="4Components", description="6")
def brush() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/brush.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="CartesianAxisGrid", title="4Components", description="6")
def cartesian_axis_grid() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/cartesianaxisgrid.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="ComposedChart", title="4Components", description="6")
def composed_chart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/composedchart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="ErrorBar", title="4Components", description="6")
def errorbar() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/errorbar.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="FunnelChart", title="4Components", description="6")
def funnelchart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/funnelchart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Label", title="4Components", description="6")
def label() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/label.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Legend", title="4Components", description="6")
def legend() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/legend.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="LineChart", title="4Components", description="6")
def line_chart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/linechart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="PinChart", title="4Components", description="6")
def pie_chart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/piechart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="RadarChart", title="4Components", description="6")
def radar_chart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/radarchart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Reference", title="4Components", description="6")
def reference() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/reference.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="ScatterChart", title="4Components", description="6")
def scatter_chart() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/scatterchart.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Tooltip", title="4Components", description="6")
def tooltip() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/tooltip.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Treemap", title="4Components", description="6")
def treemap() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/graphing/treemap.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)